package com.practice.dao.user;

import com.practice.dao.BaseDao;
import com.practice.domain.user.User;
import com.practice.exception.PracticeException;

/**
 * Created by Administrator on 2016/8/20.
 */
public interface UserDao extends BaseDao<User> {
  User detail(Long id);

  User findByEmail(String email);

  User findByUsername(String username);

  User create(String username, String email, String password) throws PracticeException;
}
